//
//  ItemSecondCell.m
//  Lovelife
//
//  Created by apple on 15/4/27.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ItemSecondCell.h"
#import "NightManager.h"

@implementation ItemSecondCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.Img = [[UIImageView alloc]init];
        
        [self addSubview:self.Img];
        
        [_Img release];
        
        self.title = [[BaseLabel alloc]init];
        
        [self addSubview:self.title];
        
        [_title release];
        
    }
    return self;

}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.Img.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height-30);
    self.title.frame = CGRectMake(0, self.frame.size.height-30, self.frame.size.width, 30);
    

}

-(void)setNightDayModel
{
    [NightManager setBackgroundColorWithCollectionView:self];
    
    [NightManager setLabelColorWithLabel:self.title];
}

-(void)setLightDayModel
{
    [NightManager setBackgroundColorWithCollectionView:self];
    
    [NightManager setLabelColorWithLabel:self.title];
    
}

@end
